package com.limingru.newbee.service.impl;

import com.limingru.newbee.dao.AddressMapper;
import com.limingru.newbee.entity.Address;
import com.limingru.newbee.service.UserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserAddressServiceImpl implements UserAddressService {

    @Autowired
    AddressMapper addressMapper;

    @Override
    public Address getAddressByAddressId(Long addressId) {
        return addressMapper.selectAddressByAddressId(addressId);
    }
}
